<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title>K线</title>
  <link rel="stylesheet" type="text/css" href="/static/index/css/kline.css"/>
</head>

<body>
<div id="app">
  <div class="head">
    <div class="price">
      <span class="price-label">{{txData.lastPrice || 0}}</span>
      <span class="price-value">≈ ${{txData.lastPrice || 0}}</span>
    </div>
    <div class="head-item">
      <div class="head-item-cell">
        <span class="hic-label">涨跌幅</span>
        <span class="hic-value" :class="txData.upFlag==1?'price-green':'price-red'">{{txData.upRate || 0}}</span>
      </div>
      <div class="head-item-cell">
        <span class="hic-label">高</span>
        <span class="hic-value">{{txData.high || 0}}</span>
      </div>
    </div>
    <div class="head-item">
      <div class="head-item-cell">
        <span class="hic-label">24H</span>
        <span class="hic-value">{{txData.volume || 0}}</span>
      </div>
      <div class="head-item-cell">
        <span class="hic-label">低</span>
        <span class="hic-value">{{txData.low || 0}}</span>
      </div>
    </div>
  </div>
  <div class="tabs">
    <div  class="tabs-item">
      <span class="tabs-item-text" class="">分时</span>
      <div class="tabs-item-bar" class=""></div>
    </div>
    <div @click="switchTab(item.value)" class="tabs-item" v-for="(item,index) in tabs" :key="index">
      <span class="tabs-item-text" :class="{'tabs-item-text-active':current==item.value}">{{item.label}}</span>
      <div class="tabs-item-bar" :class="{'tabs-item-bar-active':current==item.value}"></div>
    </div>
  </div>
  <div class="charts-border">
    <div id="main" class="charts"></div>
    <div class="charts-label">
      <div class="charts-MA5">MA5:{{MA5 || 0}}</div>
      <div class="charts-MA10">MA10:{{MA10 || 0}}</div>
      <div class="charts-MA30">MA30:{{MA30 || 0}}</div>
    </div>
    <div class="charts-bar-label">
      <div class="charts-MA5">MA5:{{volMA5 || 0}}</div>
      <div class="charts-MA10">MA10:{{volMA10 || 0}}</div>
    </div>
  </div>
  <div style="height:80px"></div>
  <div class="btns">
    <div @click="back" class="btn btn-green">买入</div>
    <div @click="back" class="btn btn-red">卖出</div>
  </div>


</div>
<script type="text/javascript" src="/static/index/js/uni.webview.1.5.2.js"></script>
<script type="text/javascript" src="/static/index/js/echarts.min.js"></script>
<script type="text/javascript" src="/static/index/js/qs.js"></script>
<script type="text/javascript" src="/static/index/js/axios.js"></script>
<script type="text/javascript" src="/static/index/js/vue.js"></script>
<script type="text/javascript" src="/static/index/js/mock.js"></script>
<script type="text/javascript" src="/static/index/js/kline.js"></script>
</body>
<script>
</script>
</html>
